package com.itheima.entry.service;

import com.itheima.entry.domain.Student;

import java.util.ArrayList;

public interface IStudentService {
    //增
    void add(Student st);

    //删
    void remove(String id);

    //改
    void update(Student st);

    //判断索引存在与否
    boolean isExists(String id);

    //查所有信息
    ArrayList<Student> allStudents();

    //查同名的学生
    ArrayList<Student> sameNameStudents(String name);

    //通过手机号查询学生
    ArrayList<Student> phoneToStudent(String phone);




}
